/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.DesignPatterns.behavioral.cor;

/**
 *
 * @author Nashief
 */
public class EarthHandler extends PlanetHandler {
    
    

    @Override
    public void handleRequest(PlanetEnum request) {
       if(request==PlanetEnum.EARTH){
    System.out.println("EarthHandler handles"+request);
    System.out.println("Earth is comfortable\n"); 
    }else{
        System.out.println("EarthHandler doesn't handle"+request);
    }if(successor!=null){
    successor.handleRequest(request);
    }
    }

    
    
}
